export function towerAction() {
  for (const room in global.roomCache) {
    const hostileCreeps: Array<any> = Game.rooms[room].find(FIND_HOSTILE_CREEPS);
    const tower: Array<string> = global.roomCache[room][STRUCTURE_TOWER];
    tower
      .map(e => Game.getObjectById(e))
      .forEach((tower: StructureTower) => {
        tower.attack(hostileCreeps[0]);
      })
  }
}